import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URISyntaxException;

public class HelloWorld {
	public static void main(String args[]) {
		System.out.println("SYSINFO - Hello World.");
		File file;
		try {
			file = new File(HelloWorld.class.getResource("").toURI());
			String localPath = file.toString() + "\\HelloWorldByItself.out";
			System.out.println(localPath);
			FileOutputStream fos;

			fos = new FileOutputStream(localPath);
			String lineStr = "Output";
			fos.write(lineStr.getBytes());
			fos.close();
		} catch (URISyntaxException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
